@section ("header_nav")
<div class="navbar navbar-fixed-top navbar-inverse">
	<div class="container">
		<button data-target=".nav-collapse" data-toggle="collapse" class="navbar-toggle" type="button">
          <span class="icon-bar"></span>
          <span class="icon-bar"></span>
          <span class="icon-bar"></span>
        </button>
		<a href="{{ URL::route('manager.dashboard.index') }}" class="navbar-brand">{{Config::get("app.sitename")}} Site Manager</a>
		<div class="nav-collapse collapse">
			<ul class="nav navbar-nav">
				<li><a href="{{ URL::route('manager.dashboard.index') }}"><i class="fa fa-fw fa-home"></i>Home</a></li>
				<li class="dropdown {{
					Str::contains(URL::current(), "/page") ||
					Str::contains(URL::current(), "/news") ||
					Str::contains(URL::current(), "/project") ||
					Str::contains(URL::current(), "/career") ||
					Str::contains(URL::current(), "/video") ||
					Str::contains(URL::current(), "/jobs")?"active":""
				}}">
					<a class="dropdown-toggle" data-toggle="dropdown" href="#">
						Content
						<span class="caret"></span>
					</a>
					<ul class="dropdown-menu pull-right">
						<li><a href="{{ URL::route('manager.pages.index') }}">Pages</a></li>
						<li><a href="{{ URL::route('manager.news.index') }}">News</a></li>
						<li><a href="{{ URL::route('manager.projects.index') }}">Projects</a></li>
						<li><a href="{{ URL::route('manager.videos.index') }}">Videos</a></li>
						<li><a href="{{ URL::route('manager.jobs.index') }}">Jobs</a></li>
					</ul>
				</li>
	        	<li class="dropdown {{ Str::contains(URL::current(), "/product")?"active":"" }}">
	        		<a class="dropdown-toggle" data-toggle="dropdown" href="#">
						Products
						<span class="caret"></span>
					</a>
					<ul class="dropdown-menu pull-right">
						<li><a href="{{ URL::route('manager.products.index') }}">Manage Products</a></li>
						<li><a href="{{ URL::route('manager.productcategories.index') }}">Manage Categories</a></li>
						<li><a href="{{ URL::route('manager.productfiletypes.index') }}">Manage File Types</a></li>
						<li><a href="{{ URL::route('manager.productimagetypes.index') }}">Manage Image Types</a></li>
					</ul>
	        	</li>
			</ul>
			<ul class="nav navbar-nav pull-right">
				<li class="dropdown">
					<a class="dropdown-toggle" data-toggle="dropdown" href="#" style="padding:10px;">
						<img class="img-circle" src="http://www.gravatar.com/avatar/{{ md5(strtolower(trim(Sentry::getUser()->email))) }}?s=30&d=mm">
						<span class="caret"></span>
					</a>
					<ul class="dropdown-menu pull-right">
						<li><a href="#"><i class="fa fa-fw fa-cogs"></i> Settings</a></li>
						<li class="divider"></li>
						<li><a href="{{ URL::route('manager.logout') }}"><i class="fa fa-fw fa-power-off"></i> Logout</a></li>
					</ul>
				</li>
			</ul>
			
		</div>
	</div>
</div>
@stop